package com.sch.hospital.domain;

import java.time.LocalDate;

/**
 * 首页轮播图对象 carousel
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
public class Carousel 
{
    /** 轮播图ID，自增主键 */
    private Long id;

    /** 轮播图片路径 */
    private String img;

    /** 轮播图标题 */
    private String title;

    /** 轮播图内容描述 */
    private String content;

    /** 对应的公告id */
    private Long noticeId;

    /** 是否有效:0无效1有效 */
    private Long isValid;

    /** 创建时间 */
    private LocalDate createTime;

    /** 更新时间 */
    private LocalDate updateTime;

    public Carousel() {
    }

    public Carousel(Long id, String img, String title, String content, Long noticeId, Long isValid, LocalDate createTime, LocalDate updateTime) {
        this.id = id;
        this.img = img;
        this.title = title;
        this.content = content;
        this.noticeId = noticeId;
        this.isValid = isValid;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return img
     */
    public String getImg() {
        return img;
    }

    /**
     * 设置
     * @param img
     */
    public void setImg(String img) {
        this.img = img;
    }

    /**
     * 获取
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取
     * @return content
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置
     * @param content
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取
     * @return noticeId
     */
    public Long getNoticeId() {
        return noticeId;
    }

    /**
     * 设置
     * @param noticeId
     */
    public void setNoticeId(Long noticeId) {
        this.noticeId = noticeId;
    }

    /**
     * 获取
     * @return isValid
     */
    public Long getIsValid() {
        return isValid;
    }

    /**
     * 设置
     * @param isValid
     */
    public void setIsValid(Long isValid) {
        this.isValid = isValid;
    }

    /**
     * 获取
     * @return createTime
     */
    public LocalDate getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public LocalDate getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(LocalDate updateTime) {
        this.updateTime = updateTime;
    }

    public String toString() {
        return "Carousel{id = " + id + ", img = " + img + ", title = " + title + ", content = " + content + ", noticeId = " + noticeId + ", isValid = " + isValid + ", createTime = " + createTime + ", updateTime = " + updateTime + "}";
    }
}
